package com.tianhui.consignortwofei.bugly;

import android.content.Context;

/**
 * @author fgs
 * @date 2020/9/23
 * @description
 **/
public class HotUpdateController {
    private IHotUpdate iHotUpdate;

    private HotUpdateController() {
        iHotUpdate = new BugLyHotUpdate();
    }

    public static HotUpdateController getInstance() {
        return SingletonHolder.instance;
    }

    private static class SingletonHolder {
        private static final HotUpdateController instance = new HotUpdateController();
    }

    public void init(Context context) {
        iHotUpdate.init(context);
    }

    public void installTinker() {
        iHotUpdate.installTinker();
    }

    public void checkUpgrade() {
        iHotUpdate.checkUpgrade();
    }


}
